#include "pt.h"
#include "pt_version.h"

#undef PT_LOG_TAG
#define PT_LOG_TAG  "hello"

uint8_t buffer[] = {1,2,3,4};

int main(int argc, char *argv[])
{
    PT_LOG("\n[ptw] %s %s\n", __DATE__, __TIME__);
    PT_LOG("%s_%s_%s_%s_%s", CHIP_MODEL, SDK_VER, PROJ_NAME, HW_VERSION, SW_VERSION);
    #ifdef TEST_VERSION
    PT_LOG("_%s", TEST_VERSION);
    #endif
    PT_LOG("\n");
    #ifdef PROJ_SUBMODEL
    PT_LOG("SUBMODEL(0x%02X)\n", PROJ_SUBMODEL);
    #endif
    PT_LOG("\n");

    PT_LOGD("Hello World!\n");
    PT_LOGI("Hello World!\n");
    PT_LOGW("Hello World!\n");
    PT_LOGE("Hello World!\n");

    pt_log_buffer(buffer, sizeof(buffer));
    pt_log_buffer_hex(buffer, sizeof(buffer));
    pt_log_bit(2, 13);

    return 0;
}
